<template>
    <div>
        <Banner></Banner>
        <div class="container">
            <div class="nav">
                <div>
                    <router-link :to="{name:'home'}" active-class="active">HOME</router-link>
                </div>
                <div>
                    <router-link :to="{name:'about'}" active-class="active">ABOUT</router-link>
                </div>
            </div>
            <div class="content">
                <router-view></router-view>
            </div>
        </div>
    </div>

</template>

<script>

import Banner from './components/Banner.vue';

export default {
    name: 'App',
    components: {
        Banner
    }
}
</script>

<style>
* {
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

.container {
    display: flex;
    width: 800px;
    justify-content: space-between;
    margin-top: 50px;
}

.nav {
    /* background-color: skyblue; */
    width: 200px;
    height: 600px;
}

.content {
    width: 600px;
    /* background-color: orange; */
    height: 600px;
}

.nav a {
    display: block;
    text-decoration: none;
    height: 40px;
    width: 200px;
    line-height: 40px;
}

.active {
    background-color: rgb(32, 152, 221);
    color: white;
}

li{
    list-style: none;
}
</style>